package com.qf.controller;

import com.qf.pojo.CheckItem;
import com.qf.service.CheckItemServic;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@CrossOrigin(origins = "http://localhost:82")
@RestController
@RequestMapping("checkitem")
public class CheckItemController {
    @Autowired
    private CheckItemServic checkItemServic;
    @GetMapping("findAll")
    public List<CheckItem> findById(Integer id,Integer mid,Integer smid,Integer oid){
        return checkItemServic.findById(id,mid,smid,oid);
    }
}
